using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace miciv
{
    public class BitmapFontManager
    {
        protected Hashtable m_htblFonts;

        public BitmapFontManager()
        {
            m_htblFonts = new Hashtable();
        }

        public BitmapFont GetFont(string _strFontID)
        {
            if (false != this.m_htblFonts.ContainsKey(_strFontID))
            {
                return this.m_htblFonts[_strFontID] as BitmapFont;
            }
            return null;
        }

        public bool AddFont(string _strFontID, BitmapFont _bmFont)
        {
            if (false == this.m_htblFonts.ContainsKey(_strFontID))
            {
                this.m_htblFonts.Add(_strFontID, _bmFont);
                return true;
            }
            return false;
        }

        public void RemoveFont(string _strFontID)
        {
            if (false != this.m_htblFonts.ContainsKey(_strFontID))
            {
                this.m_htblFonts.Remove(_strFontID);
            }
        }
    }
}
